package kin.system.util;

import java.beans.PropertyEditorSupport;

import javax.xml.datatype.DatatypeConstants;

    public class IntPropertyEditor extends PropertyEditorSupport {  
          
       
        public void setAsText(String value) {  
            if ("".equals(value)) {  
            	System.out.println("CCCCCCCC");
                setValue(0);  
            } else {  
            	
               int i=Integer.parseInt(value);
               setValue(i); 
            }  
        }  
          
    }  